package com.kasinf.sample.mq.redis.message;

import com.kasinf.framework.cache.mq.AbstractRedisStreamMessageListener;
import com.kasinf.framework.common.util.json.JsonUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author : Kaiser
 * @Date: 2025/5/27  16:44
 */
@Slf4j
@Component
public class TestMessageListener extends AbstractRedisStreamMessageListener<TestMessage> {
    @Override
    public void onMessage(TestMessage message) {
        log.info(">>>>> 接收到消息: {}", JsonUtils.toJsonString(message));
    }
}
